n = int(input("请输入一个正整数n："))
sum = 0
m = n
while n > 0:
    sum += n
    n -= 1
print(f"1到{m}相加后的和：", sum)